﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.IO;
using System.Windows.Resources;
using System.Windows.Media.Imaging;
using System.Collections.Generic;
using TestWif.BingServiceReference;
using System.Net;


namespace TestWif
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            // Required to initialize variables
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            lbItems.ItemsSource = new List<Int32> { 1, 2, 3, 4, 5, 1, 1, 1, 1, 1, 1, 1 };
            StreamResourceInfo sr = Application.GetResourceStream(new Uri("Wildlife.wmv", UriKind.Relative));
            media.Volume = 0;
            media.SetSource(sr.Stream);

        }

        private void Grid_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			VideoStoryboard.Begin();
        }

        private void grid_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
        {
        	// TODO: Add event handler implementation here.
			VideoStoryboard.Stop();
        }
    }
}